package android.test;

import java.util.List;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

import android.content.Context;
import android.location.LocationManager;
import android.os.Bundle;

public class MapOverviewActivity extends MapActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mapoverview);
        MapView mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        Context context = getBaseContext();
        LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
        List<String> AllProviders = locationManager.getAllProviders();
        //mapView.getController().animateTo(new GeoPoint((int)(locationManager.getLastKnownLocation(AllProviders.get(0)).getLatitude()*1E6),(int)(locationManager.getLastKnownLocation(AllProviders.get(0)).getLongitude()*1E6 )));
    }

	@Override
	protected boolean isRouteDisplayed() {
		return false;
	}
    
}
